package org.tong.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class MyAsyncService {

    @Async
    public void startAsyncTask(String name) {
        System.out.println(Thread.currentThread().getId() + "\tThere will have a async task start at " + new Date() + " for " + name);
    }
}
